var data = []
data = [{
			id: 1,
			title: "在以下数据类型中，不是Java基础数据类型的是( )",
			type: 1,
			optionList: [{
				id: "A",
				content: "int"
			}, {
				id: "B",
				content: "double"
			}, {
				id: "C",
				content: "char"
			}, {
				id: "D",
				content: "String"
			}],
			answer: "D",
			userAnswer: "",
			explain: "String类型是引用数据类型，不属于基本数据类型"
		},
		{
			id: 2,
			title: "Java所定义的版本中不包括( )",
			type: 1,
			optionList: [{
				id: "A",
				content: "J2EE"
			}, {
				id: "B",
				content: "J2ME"
			}, {
				id: "C",
				content: "J2SE"
			}, {
				id: "D",
				content: "J2HE"
			}],
			answer: "D",
			userAnswer: "",
			explain: "本题考察的是Java的发展简史，Java版本包括J2EE 、 J2ME 、 J2SE ，不存在J2HE"
		},
		{
			id: 3,
			title: "下列选项中不属于Java算术运算符的是( )。",
			type: 1,
			optionList: [{
				id: "A",
				content: "/"
			}, {
				id: "B",
				content: "%"
			}, {
				id: "C",
				content: "*"
			}, {
				id: "D",
				content: "!="
			}],
			answer: "D",
			userAnswer: "",
			explain: "!= 是逻辑运算符"
		},
		{
			id: 4,
			title: "在Java中,( )方法可以比较两个对象的值是否相等,如两个对象值相等,则返回true。",
			type: 1,
			optionList: [{
				id: "A",
				content: "toString()"
			}, {
				id: "B",
				content: "equals()"
			}, {
				id: "C",
				content: "compare()"
			}, {
				id: "D",
				content: "以上所有选项都不正确"
			}],
			answer: "B",
			userAnswer: "",
			explain: "java.lang包中Object的equals方法将比较两个对象是否相等，如果相等则返回true"
		},
		{
			id: 5,
			title: "在Java中,java.util.Arrays类中用来排序的方法是( )。",
			type: 1,
			optionList: [{
				id: "A",
				content: "sort()"
			}, {
				id: "B",
				content: "sorp()"
			}, {
				id: "C",
				content: "paixu()"
			}, {
				id: "D",
				content: "list()"
			}],
			answer: "A",
			userAnswer: "",
			explain: "Arrays是Java提供的一个类，而sort()是该类的一个方法，用于完成对数组的排序（升序）。因此A是正确选项"
		},

		{
			id: 6,
			title: "在Java中，下列标识符用于定义变量名，合法的是( )。",
			type: 1,
			optionList: [{
				id: "A",
				content: "class"
			}, {
				id: "B",
				content: "$Usdollars"
			}, {
				id: "C",
				content: "1234"
			}, {
				id: "D",
				content: "car.taxi"
			}],
			answer: "B",
			userAnswer: "",
			explain: "Java标识符以字母，数字，下划线，$符号组成，不能以数字开头，不能是关键字。class是java关键字。"
		},
		{
			id: 7,
			title: "在JAVA中，以下创建变量错误的是()。",
			type: 1,
			optionList: [{
				id: "A",
				content: 'String str="";'
			}, {
				id: "B",
				content: "String str=new String();"
			}, {
				id: "C",
				content: "StringBuffer sb=new StringBuffer();"
			}, {
				id: "D",
				content: "Integer i=new Integer();"
			}],
			answer: "D",
			userAnswer: "",
			explain: "Integer i = new Integer(&quot;1234&quot;); 也就是说必须是有参的"
		},
		{
			id: 8,
			title: "在Java中，关于开发程序的步骤，说法错误的是( )。",
			type: 1,
			optionList: [{
				id: "A",
				content: "第一步：编写源程序"
			}, {
				id: "B",
				content: "第二步：编译"
			}, {
				id: "C",
				content: "第三步：运行"
			}, {
				id: "D",
				content: "第四步：反编译"
			}],
			answer: "D",
			userAnswer: "",
			explain: " 反编译是将编译好了的.class文件反编译为可以查看的代码，并非开发程序的步骤"
		},
		{
			id: 9,
			title: "在Java中，下列变量命名规范的是( )。",
			type: 1,
			optionList: [{
				id: "A",
				content: "Student%1"
			}, {
				id: "B",
				content: "1Stduent_avg"
			}, {
				id: "C",
				content: "_$Hello"
			}, {
				id: "D",
				content: "int"
			}],
			answer: "C",
			userAnswer: "",
			explain: "变量名首字母必须为字母(a-z A-Z)，下划线(_)，或者美元符号($)开始，变量名只能是字母(a-z A-Z)，数字(0-9)，下划线(_)的组合，并且之间不能包含空格，数字不能放在变量名首位"
		},
		{
			id: 10,
			title: "在Java中，需要向控制台打印输出“Welcome!”并自动换行，可以实现此功能的语句是（）。",
			type: 2,
			optionList: [{
				id: "A",
				content: 'System.print("Welcome!\\n");'
			}, {
				id: "B",
				content: 'System.out.print("Welcome!\\n");'
			}, {
				id: "C",
				content: 'System.out.println("Welcome!");'
			}, {
				id: "D",
				content: 'System.println("Welcome!");'
			}],
			answer: "B,C",
			userAnswer: "",
			explain: "在控制台输出打印是System.out.println();println 自带换行效果;\n也有换行的效果"
		},

		{
			id: 11,
			title: "如何把Person类中的name属性封装起来，则name属性应定义为()。",
			type: 1,
			optionList: [{
				id: "A",
				content: "public"
			}, {
				id: "B",
				content: "final"
			}, {
				id: "C",
				content: "static"
			}, {
				id: "D",
				content: "private"
			}],
			answer: "D",
			userAnswer: "",
			explain: "面向对象三个特性是封装、继承、多态，其中，封装的一个体现就是讲属性私有，方法公开，将属性私有的方式，就是使其使用private修饰"
		},
		{
			id: 12,
			title: "在Java类中，以下（ ）是定义公有的int类型常量MIN。",
			type: 1,
			optionList: [{
				id: "A",
				content: "public int MIN = 0;"
			}, {
				id: "B",
				content: "public static int MIN = 0;"
			}, {
				id: "C",
				content: "public final int MIN = 0;"
			}, {
				id: "D",
				content: "static final int MIN = 0;"
			}],
			answer: "C",
			userAnswer: "",
			explain: "本题考察final关键字定义常量，公有的常量应该为public final修饰，常量名通常全部大写，所以C正确"
		},
		{
			id: 13,
			title: "下列（  ）不是Java中面向对象程序设计方法的特点。",
			type: 1,
			optionList: [{
				id: "A",
				content: "抽象"
			}, {
				id: "B",
				content: "继承"
			}, {
				id: "C",
				content: "多态"
			}, {
				id: "D",
				content: "结构化"
			}],
			answer: "D",
			userAnswer: "",
			explain: "抽象相当于特殊类 ，抽象类只能被继承，抽象方法只能被重写，都是为了面向对象设计出来的机构化跟面向对象没有必然联系"
		},
		{
			id: 14,
			title: "在Java中下列关于方法的重载说法正确的是（）",
			type: 1,
			optionList: [{
				id: "A",
				content: "Overriding 表示方法的重载"
			}, {
				id: "B",
				content: "方法重载中方法名必须相同，参数类型和个数也必须相同"
			}, {
				id: "C",
				content: "方法重载提高了代码的灵活性和重用性"
			}, {
				id: "D",
				content: "可以用方法的返回类型来决定方法的重载"
			}],
			answer: "C",
			userAnswer: "",
			explain: "，a Overriding表示方法的重写，而不是重载，b 方法重载参数类型或者个数必须不同， 所以选c 提高了方法的灵活性和重用性 正确，d 不能用方法的返回类型来决定方法的重载"
		},
		{
			id: 15,
			title: "以下（ ）不是Java所支持的数据类型。",
			type: 1,
			optionList: [{
				id: "A",
				content: "boolean"
			}, {
				id: "B",
				content: "int"
			}, {
				id: "C",
				content: "float"
			}, {
				id: "D",
				content: "bool"
			}],
			answer: "D",
			userAnswer: "",
			explain: "bool为C# 语言中的布尔类型"
		},

		{
			id: 16,
			title: "属于java的访问控制符的是（）。",
			type: 2,
			optionList: [{
				id: "A",
				content: "public"
			}, {
				id: "B",
				content: "protected"
			}, {
				id: "C",
				content: "private"
			}, {
				id: "D",
				content: "static"
			}],
			answer: "A,B,C",
			userAnswer: "",
			explain: "static是静态的（修饰符）"
		},
		{
			id: 17,
			title: "下列关于Java中Object类说法正确的是（）。",
			type: 2,
			optionList: [{
				id: "A",
				content: "Object类的构造方法可以重写"
			}, {
				id: "B",
				content: "Object类有一个默认构造方法pubilc Object()在构造子类实例时，都会先调用这个默认构造方法"
			}, {
				id: "C",
				content: "可以使用类型为Object的变量指向任意类型的对象"
			}, {
				id: "D",
				content: "Object类的变量只能用作各种值的通用持有者"
			}],
			answer: "B,C,D",
			userAnswer: "",
			explain: "了解Object类"
		},
		{
			id: 18,
			title: "下面哪些是Thread类的方法（）",
			type: 2,
			optionList: [{
				id: "A",
				content: "start() "
			}, {
				id: "B",
				content: "run() "
			}, {
				id: "C",
				content: "exit()"
			}, {
				id: "D",
				content: "getPriority()"
			}],
			answer: "A,B,D",
			userAnswer: "",
			explain: "看Java API docs吧：http://tool.oschina.net/apidocs/apidoc?api=jdk-zh，exit()是System类的方法，如System.exit(0)。"
		},
		{
			id: 19,
			title: "下列属于关系型数据库的是（）",
			type: 2,
			optionList: [{
				id: "A",
				content: "Oracle"
			}, {
				id: "B",
				content: "MySql"
			}, {
				id: "C",
				content: " IMS"
			}, {
				id: "D",
				content: "MongoDB"
			}],
			answer: "A,B",
			userAnswer: "",
			explain: "IMS（Information Management System ）数据库是IBM公司开发的两种数据库类型之一; 非关系型数据库有MongoDB、memcachedb、Redis等。"
		},
		{
			id: 20,
			title: "0.6332的数据类型是（）",
			type: 1,
			optionList: [{
				id: "A",
				content: "float"
			}, {
				id: "B",
				content: "double"
			}, {
				id: "C",
				content: "Float"
			}, {
				id: "D",
				content: "Double"
			}],
			answer: "B",
			userAnswer: "",
			explain: "默认为double型，如果为float型需要加上f显示说明，即0.6332f"
		},
		{
			id: 21,
			title: "Java接口的修饰符可以为（）",
			type: 2,
			optionList: [{
				id: "A",
				content: " private"
			}, {
				id: "B",
				content: "protected"
			}, {
				id: "C",
				content: "final"
			}, {
				id: "D",
				content: "abstract"
			}],
			answer: "C,D",
			userAnswer: "",
			explain: "接口用于描述系统对外提供的所有服务,因此接口中的成员常量和方法都必须是公开(public)类型的,确保外部使用者能访问它们；（2）接口仅仅描述系统能做什么,但不指明如何去做,所以接口中的方法都是抽象(abstract)方法；"
		},
		{
			id: 22,
			title: 'System.out.println("5" + 2);的输出结果应该是（）。',
			type: 1,
			optionList: [{
				id: "A",
				content: "52"
			}, {
				id: "B",
				content: "7"
			}, {
				id: "C",
				content: "2"
			}, {
				id: "D",
				content: "5"
			}],
			answer: "A",
			userAnswer: "",
			explain: "Java会自动将2转换为字符串。"
		},
		{
			id: 23,
			title: "关于 JAVA 堆,下面说法错误的是( )",
			type: 1,
			optionList: [{
				id: "A",
				content: "所有类的实例和数组都是在堆上分配内存的"
			}, {
				id: "B",
				content: "对象所占的堆内存是由自动内存管理系统回收"
			}, {
				id: "C",
				content: "堆内存由存活和死亡的对象，空闲碎片区组成"
			}, {
				id: "D",
				content: "数组是分配在栈中的"
			}],
			answer: "D",
			userAnswer: "",
			explain: "首先数组是分配在堆中的，故D的说法不正确。"
		},
		{
			id: 24,
			title: "下列说法正确的是：",
			type: 1,
			optionList: [{
				id: "A",
				content: "一个文件里可以同时存在两个public修饰的类"
			}, {
				id: "B",
				content: "构造函数可以被重写（override）"
			}, {
				id: "C",
				content: "子类不能访问父类非public和protected修饰的属性"
			}, {
				id: "D",
				content: "final修饰的类可以被继承"
			}],
			answer: "C",
			userAnswer: "",
			explain: "一个Java源文件中最多只能有一个public类，当有一个public类时，源文件名必须与之一致，否则无法编译，如果源文件中没有一个public类，则文件名与类中没有一致性要求。至于main()不是必须要放在public类中才能运行程序"
		},
		{
			id: 25,
			title: "以下for循环的执行次数是：____ for(int x=0,y=0;(y!=0)&&(x<4);x++)",
			type: 1,
			optionList: [{
				id: "A",
				content: "无限次"
			}, {
				id: "B",
				content: "执行4次"
			}, {
				id: "C",
				content: "执行3次"
			}, {
				id: "D",
				content: "一次也不执行"
			}],
			answer: "D",
			userAnswer: "",
			explain: "y初始值为0，在整个for循环中，y的值不变，故判断语句中的(y!=0)不成立，故一次也不执行。"
		},

		{
			id: 26,
			title: "哪个（些）是java关键字?",
			type: 2,
			optionList: [{
				id: "A",
				content: "run"
			}, {
				id: "B",
				content: "default"
			}, {
				id: "C",
				content: "implement"
			}, {
				id: "D",
				content: "import"
			}],
			answer: "B,C,D",
			userAnswer: "",
			explain: "参考Java关键字列表"
		},
		{
			id: 27,
			title: "下面的哪一个不属于MVC模式中的对象",
			type: 1,
			optionList: [{
				id: "A",
				content: "Model"
			}, {
				id: "B",
				content: "View"
			}, {
				id: "C",
				content: "Collection"
			}, {
				id: "D",
				content: "Controller"
			}],
			answer: "C",
			userAnswer: "",
			explain: "MVC : Model - View - Controller"
		},
		{
			id: 28,
			title: "下列说法正确的是()",
			type: 1,
			optionList: [{
				id: "A",
				content: "JAVA程序的main方法必须写在类里面"
			}, {
				id: "B",
				content: "JAVA程序中可以有多个main方法"
			}, {
				id: "C",
				content: "JAVA程序中类名必须与文件名一样"
			}, {
				id: "D",
				content: "JAVA程序的main方法中如果只有一条语句，可以不用写{}"
			}],
			answer: "A",
			userAnswer: "",
			explain: ""
		},
		{
			id: 29,
			title: "在Java中，下列标识符用于定义变量名，合法的是( )。",
			type: 1,
			optionList: [{
				id: "A",
				content: "class"
			}, {
				id: "B",
				content: "$Usdollars"
			}, {
				id: "C",
				content: "1234"
			}, {
				id: "D",
				content: "car.taxi"
			}],
			answer: "B",
			userAnswer: "",
			explain: "Java标识符以字母，数字，下划线，$符号组成，不能以数字开头，不能是关键字。class是java关键字。"
		},
		{
			id: 30,
			title: "在JAVA中，以下创建变量错误的是()。",
			type: 1,
			optionList: [{
				id: "A",
				content: 'String str="";'
			}, {
				id: "B",
				content: "String str=new String();"
			}, {
				id: "C",
				content: "StringBuffer sb=new StringBuffer();"
			}, {
				id: "D",
				content: "Integer i=new Integer();"
			}],
			answer: "D",
			userAnswer: "",
			explain: "Integer i = new Integer(&quot;1234&quot;); 也就是说必须是有参的"
		},

	],

	module.exports = {
		questions: data,
	}
